package cn.kimming.service;

import cn.kimming.common.pojo.Room;
import cn.kimming.common.vo.RoomInFoVO;
import cn.kimming.common.vo.RoomVO;
import com.alibaba.fastjson.JSONObject;
import com.github.pagehelper.PageInfo;

import java.util.List;

/**
 * @author 刘铭轩
 * date 2021-05-23
 */
public interface IRoomService {

    RoomVO findById(Long id);

    void save(Room bo);

    void update(Room bo);

    void deleteById(Long id);

    List<JSONObject> find4BuildingCodeFilter();

    PageInfo<RoomVO> findAllByPage(int page, Integer roomNum);

    PageInfo<RoomInFoVO> findInfo(int page, Integer roomNum);
}
